<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script type="text/javascript" src="../../../src/base/_core.js"></script>
    <script type="text/javascript" src="../../../src/base/array.js"></script>
    <script type="text/javascript" src="../../../src/base/string.js"></script>
</head>
<body>
<script type="text/javascript">
    var str1 = '  string111';
    var str2 = 'string222         ';
    var str3 = '           string1234         ';
    var str4 = "afei";
    var str5 = "font-size";
    var str6 = "lineHeight";
    function camelize(string) {
        return string.replace(/(-\w)/, function ($1) {
            return $1.slice(1).toUpperCase();
        })
    }
    /** 优化之后____>
     * @param string
     * @return {*}
     */
    function camelize2(string) {
        return string.replace(/-(\w)/ig, function (str,$1) {
            return $1.toUpperCase();
        })
    }
    function decamelize(string) {
        return string.replace(/([A-Z])/g, function (a) {
            return '-' + a.toLowerCase();
        });
    }


</script>

<div id="test">testText</div>
</body>
</html>